import request from '@/utils/request'

// 查询用户积分变动日志列表
export function listUserPointsLog(query) {
  return request({
    url: '/system/userPointsLog/list',
    method: 'get',
    params: query
  })
}

// 查询用户积分变动日志详细
export function getUserPointsLog(id) {
  return request({
    url: '/system/userPointsLog/' + id,
    method: 'get'
  })
}

// 新增用户积分变动日志
export function addUserPointsLog(data) {
  return request({
    url: '/system/userPointsLog',
    method: 'post',
    data: data
  })
}

// 修改用户积分变动日志
export function updateUserPointsLog(data) {
  return request({
    url: '/system/userPointsLog',
    method: 'put',
    data: data
  })
}

// 删除用户积分变动日志
export function delUserPointsLog(id) {
  return request({
    url: '/system/userPointsLog/' + id,
    method: 'delete'
  })
}
